// 任务相关类型定义

export interface Task {
    id: string;
    taskCode: string;
    taskDescription: string;
    taskName: string;
    taskType: number;
    completionQuantity: number;
    rewardType: number;
    rewardConfig: string;
    participationConditions: string;
    isTimeLimited: boolean;
    startTime: string;
    endTime: string;
    sortOrder: number;
    taskCycle: number;
    taskTypeName: string;
    rewardTypeName: string;
    language: string;
}

export interface TaskQueryParams {
    current?: number;
    size?: number;
    taskName?: string;
    taskType?: number;
    language?: string;
    memberLevel?: string;
}

// 任务表单数据类型
export interface TaskFormData {
    taskCode: string;
    taskName: string;
    taskDescription: string;
    taskType: number;
    completionQuantity: number;
    rewardType: number;
    rewardConfig: string;
    memberLevelIds: string[];
    isTimeLimited: boolean;
    startTime: string;
    endTime: string;
    taskCycle: number;
    language: string;
}

// 任务类型选项
export const TASK_TYPE_OPTIONS = [
    { label: '浏览文章', value: '1' },
    { label: '观看视频', value: '2' },
    { label: '购买商品', value: '3' },
    { label: '购买服务', value: '4' },
    { label: '邀请', value: '5' },
    { label: '签到', value: '6' }
];

// 奖励类型选项
export const REWARD_TYPE_OPTIONS = [
    { label: '积分', value: '1' },
    { label: '道具', value: '2' },
    { label: '积分+道具', value: '3' }
];

// 任务周期选项
export const TASK_CYCLE_OPTIONS = [
    { label: '按日', value: '1' },
    { label: '按周', value: '2' },
    { label: '活动', value: '3' }
];

// 语言选项
export const LANGUAGE_OPTIONS = [
    { label: '中文', value: 'zh-CN' },
    { label: '英文', value: 'en-US' }
];